package com.whfc.ms.api.emp.service;

import com.whfc.common.result.ListData;
import com.whfc.common.result.PageData;
import com.whfc.emp.dto.AppWorkTypeDTO;
import com.whfc.emp.param.WorkTypeAddParam;
import com.whfc.emp.param.WorkTypeEditParam;

/**
 * @ClasssName MsAppEmpSettingService
 * @Description 人员模块-工种字典
 * @Author hw
 * @Date 2020/12/24 10:06
 * @Version 1.0
 */
public interface MsAppEmpWorkService {
    /**
     * 工种列表(分页)
     *
     * @param deptId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageData<AppWorkTypeDTO> workTypeList(Integer deptId, Integer pageNum, Integer pageSize);

    /**
     * 工种列表(不分页)
     *
     * @param deptId
     * @return
     */
    ListData<AppWorkTypeDTO> workTypeList(Integer deptId);

    /**
     * 添加工种
     *
     * @param param
     */
    void workTypeAdd(WorkTypeAddParam param);

    /**
     * 编辑工种
     *
     * @param param
     */
    void workTypeEdit(WorkTypeEditParam param);

    /**
     * 删除工种
     *
     * @param id
     */
    void workTypeDel(Integer id);
}
